#ifndef SIMPLEKEYBOARD_H
#define SIMPLEKEYBOARD_H

#include "touchkeyboard.h"

class SimpleKeyboard : public TouchKeyboard
{
    Q_OBJECT

public:
    explicit SimpleKeyboard(QWidget *parent = nullptr);
    virtual ~SimpleKeyboard() {}  // 添加析构函数

protected:
    void createSimpleLayout() override;
    void createFullLayout() override;

private:
    void addNumberRow(QGridLayout *layout, int row, const QStringList &numbers);
    void addNumberButton(QGridLayout *layout, int row, int col, const QString &text);
    void addNumberButtonToLayout(QGridLayout *layout, int row, int col, const QString &text);
    void addNumberButtonToLayout(QGridLayout *layout, int row, int col, const QString &text, int customSize);
    void addOperatorButtons(QGridLayout *layout);
    void addFunctionButtons(QGridLayout *layout);
};

#endif // SIMPLEKEYBOARD_H